package kirk.ocean.pp.model;

import java.util.Collection;
import java.util.Date;
import javax.persistence.Id;
import javax.persistence.Entity;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
public class Content {
	@Id
	private Long id;
	private TextValue value;
	private Long version;
	private PPUser author;
	private Collection<Tag> tags;
	private Collection<Flag> flags;
	private Collection<PPUser> approved;
	private Collection<PPUser> disapproved;
	private Content relatedTo;
	@Temporal(TemporalType.TIMESTAMP)
	private Date creationDate;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public TextValue getValue() {
		return value;
	}
	public void setValue(TextValue value) {
		this.value = value;
	}
	public Long getVersion() {
		return version;
	}
	public void setVersion(Long version) {
		this.version = version;
	}
	public PPUser getAuthor() {
		return author;
	}
	public void setAuthor(PPUser author) {
		this.author = author;
	}
	public Collection<Tag> getTags() {
		return tags;
	}
	public void setTags(Collection<Tag> tags) {
		this.tags = tags;
	}
	public Collection<Flag> getFlags() {
		return flags;
	}
	public void setFlags(Collection<Flag> flags) {
		this.flags = flags;
	}
	public Collection<PPUser> getApproved() {
		return approved;
	}
	public void setApproved(Collection<PPUser> approved) {
		this.approved = approved;
	}
	public Collection<PPUser> getDisapproved() {
		return disapproved;
	}
	public void setDisapproved(Collection<PPUser> disapproved) {
		this.disapproved = disapproved;
	}
	public Content getRelatedTo() {
		return relatedTo;
	}
	public void setRelatedTo(Content relatedTo) {
		this.relatedTo = relatedTo;
	}
	public Date getCreationDate() {
		return creationDate;
	}
	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}
	
}
